package com.library.model.serviceimple;

import java.util.List;

import com.library.model.dao.BookDAO;
import com.library.model.dto.book.BookDTO;
import com.library.model.service.BookService;

public class BookServiceImple implements BookService {

	private BookDAO bookdao;
	
	public void setBookdao(BookDAO bookdao) {
		this.bookdao = bookdao;
	}

	@Override
	public List<BookDTO> getAllBook() {
		return bookdao.getAllBook();
	}

	@Override
	public void insertBook(BookDTO dto) {
		bookdao.insertBook(dto);
	}

	@Override
	public void deleteBook(String bookId) {
		bookdao.deleteBook(bookId);
		
	}


}
